home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Graphics 2D / CollectPictColors / CLUTBuilder.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-28  |  2.0 KB  |  51 lines  |  [TEXT/CWIE]

  1. /*
  2.     File:        CLUTBuilder.h
  3.  
  4.     Contains:    
  5.  
  6.     Written by:     
  7.  
  8.     Copyright:    Copyright © 999 by Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.                 7/8/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  20.                 
  21.  
  22. */
  23. #pragma once
  24. #include <MacTypes.h>
  25. #include <Controls.h>
  26. #include <Quickdraw.h>
  27.  
  28.  
  29. OSErr    gColorError;    /* to report errors from bottlenecks. */
  30. CTabHandle gColorTable;    /* to collect colors from bottlenecks. */
  31. short gNextCSpec;        /* next CSpec entry in color table */
  32. short foundDirect;        /* set to true if we uncover a direct pixmap */
  33. short maxPixDepth;      /* depth of deepest pixmap found */
  34. void AddRGBColor(RGBColor * rgb);
  35. void AddColorTable(CTabHandle cTab);
  36. void AddRGBForeColor();
  37. void AddRGBBackColor();
  38. void AddPixPat(PixPatHandle pPat);
  39. void AddPenPixPat();
  40. void AddFillPixPat();
  41. void AddVerb(GrafVerb verb);
  42. pascal void ColorTextProc(short byteCount, Ptr textBuf, Point numer, Point denom);
  43. pascal void ColorLineProc(Point newPt);
  44. pascal void ColorRectProc(GrafVerb verb,Rect* r);
  45. pascal void ColorRRectProc(GrafVerb verb,Rect* r, short ovalWidth,short ovalHeight);
  46. pascal void ColorOvalProc(GrafVerb verb,Rect r);
  47. pascal void ColorArcProc(GrafVerb verb,Rect* r,short startAngle,short arcAngle);
  48. pascal void ColorPolyProc(GrafVerb verb, PolyHandle poly);
  49. pascal void ColorRgnProc(GrafVerb verb,RgnHandle rgn);
  50. pascal void ColorBitsProc(BitMap* BitsPtr,Rect srcRect, Rect dstRect,short mode,RgnHandle maskRgn);
  51. CTabHandle CollectColors(PicHandle fromPicture,short * depthPtr,short * directFlagPtr);